const app = getApp();
Page({
  data: {},
  toDetail(e){
    const type = e.currentTarget.dataset.type;
    const url = e.currentTarget.dataset.url;
    if (!url) return
    if (type == 'filmOrder') {
      wx.switchTab({
        url,
      })
    } else {
      wx.navigateTo({
        url,
      })
    }
  },
})